<template>
  <view class="indexs">
    <view
      :class="'header ' + (banertrue ? 'header_lan' : '')"
      :style="'padding-top: ' + navH + 'px;'"
    >
      <view
        class="header_height"
        :style="
          'height:' +
          gaodu +
          'px;line-height:' +
          gaodu +
          'px;top:' +
          gaodutops +
          'px;'
        "
      >
        <view class="index_h_cont3">
          <view class="index_wenben_img" @tap="jumpzuo"
            ><image :src="imgUrl + '/dzx_img22.png'" mode="widthFix"></image
          ></view>
          <view class="index_wenben baise">{{
            $t("page_my_dingdan_details.my_order")
          }}</view>
        </view>
      </view>
      <view class="coloe_title">s</view>
    </view>
    <block v-for="(item, index) in arrlist" :key="index">
      <view class="index_banner" v-if="item.id == xiangqingdetail.status">
        <image :src="imgUrl + item.img" mode="widthFix"></image>
        <view class="index_banner_wenbens">
          <view class="index_banner_wenbens_t1">{{ item.name }}</view>
          <view class="index_banner_wenbens_t2">{{ item.title }}</view>
        </view>
      </view>
    </block>

    <view class="index_center">
      <view class="my_dingdan_details_center">
        <view class="my_dingdan_details_item1">
          <view
            class="my_dingdan_details_item1_dis"
            v-if="xiangqingdetail.address"
          >
            <view class="my_dingdan_details_item1_dis_l">
              <image :src="imgUrl + '/dzx_img45.png'"></image>
              <view class="my_dingdan_details_item1_txt">
                <view class="my_dingdan_details_item1_t1"
                  >{{ xiangqingdetail.address.name }}
                  {{ xiangqingdetail.address.phone }}</view
                >
                <view class="my_dingdan_details_item1_t2">
                  {{ xiangqingdetail.address.country
                  }}{{
                    setting.address_setting.is_province == 1
                      ? xiangqingdetail.address.province
                      : ""
                  }}
                  {{
                    setting.address_setting.is_city == 1
                      ? xiangqingdetail.address.city
                      : ""
                  }}{{
                    setting.address_setting.is_detail == 1
                      ? xiangqingdetail.address.detail
                      : ""
                  }}
                </view>
              </view>
            </view>
            <view
              class="my_dingdan_details_item1_t3"
              v-if="
                xiangqingdetail.status != 9 &&
                xiangqingdetail.status != 10 &&
                xiangqingdetail.status != 11
              "
              @tap="genghuandizhi"
              :data-id="xiangqingdetail.id"
            >
              {{ $t("page_my_dingdan_details.replace") }}
            </view>
          </view>
          <view
            class="my_dingdan_details_item1_dis"
            v-else
            @tap="genghuandizhi"
          >
            <view class="my_querendb_item1_l">
              <image :src="imgUrl + '/dzx_img164.png'"></image>
              <text>{{
                $t("page_my_dingdan_details.add_shipping_address")
              }}</text>
            </view>

            <view class="my_querendb_item1_r"
              ><image :src="imgUrl + '/dzx_img165.png'"></image
            ></view>
          </view>

          <view class="my_dingdan_details_item1_img"
            ><image :src="imgUrl + '/dzx_img46.png'"></image
          ></view>
        </view>
        <view class="my_dingdan_details_item2">
          <view class="my_dingdan_details_item2_dis">
            <image :src="imgUrl + '/dzx_img51.png'"></image>
            <text
              >{{ $t("page_my_dingdan_details.order_number")
              }}{{ xiangqingdetail.order_sn }}</text
            >
          </view>
          <view
            class="my_dingdan_details_item2_dis"
            v-if="
              xiangqingdetail.status == 6 ||
              xiangqingdetail.status == 7 ||
              xiangqingdetail.status == 8 ||
              xiangqingdetail.status == 9
            "
          >
            <image :src="imgUrl + '/dzx_img51.png'"></image>
            <text>
              {{ $t("page_my_dingdan_details.international_waybill_number")
              }}{{
                xiangqingdetail.t_order_sn
                  ? xiangqingdetail.t_order_sn
                  : $t("page_my_dingdan_details.No_available")
              }}
            </text>
            <view
              v-if="xiangqingdetail.t_order_sn"
              class="cangkudizhi_item1_t3"
              @tap="fuzhi"
              :data-name="xiangqingdetail.t_order_sn"
            >
              {{ $t("page_my_dingdan_details.copy_tracking_number") }}
            </view>
          </view>
          <view
            class="my_dingdan_details_item2_dis"
            v-if="xiangqingdetail.status != 1"
          >
            <image :src="imgUrl + '/dzx_img51.png'"></image>
            <text
              >{{ $t("page_my_dingdan_details.payment_mode")
              }}{{ xiangqingdetail.pay_type?xiangqingdetail.pay_type.text:"" }}</text
            >
          </view>
          <view class="my_dingdan_details_item2_dis">
            <image :src="imgUrl + '/dzx_img51.png'"></image>
            <text>{{ $t("page_my_dingdan_details.Payment_status")}}{{ xiangqingdetail.is_pay == 1 ? $t('page_cangkuyuan_waitpicklist.paid') : $t('page_cangkuyuan_waitpicklist.unpaid') }}</text>
          </view>
		  <!-- 订单箱子明细列表 -->
		  <view class="my_dingdan_details_item2_title">
		    <image :src="imgUrl + '/dzx_img47.png'"></image>
		    <text>{{ $t("page_my_dingdan_details.子订单/分箱") }}</text>
		  </view>
		  <view class="my_dingdan_details_item2_list" v-for="(items, index) in xiangqingdetail.sonitem" :key="index">
			<uni-collapse ref="collapse" v-model="value">  
			<uni-collapse-item :title="$t('page_my_dingdan_details.子订单') + '：' + items.t_order_sn" show-animation="true"> 
		    <view class="my_dingdan_details_item2_cont" v-if="items.t_order_sn">
		      <view class="my_dingdan_details_item2_l">
		        <text>{{ $t("page_my_dingdan_details.子订单") }}</text>
		      </view>
		      <view class="my_dingdan_details_item2_r" >
		        <text>{{ items && items.t_order_sn }}</text>
		      </view>
		    </view>
	
		    <view class="my_dingdan_details_item2_cont">
		      <view class="my_dingdan_details_item2_l">
		        <text>{{ $t("page_my_dingdan_details.长/宽/高/体积/重量") }}</text>
		      </view>
		      <view class="my_dingdan_details_item2_r">
		        <text>{{ items.length }}/{{ items.width }}/{{ items.height }}/{{ items.volume }}/{{ items.weight }}</text>
		      </view>
		    </view>
			</uni-collapse-item>
			</uni-collapse> 
		    </view>
		  <!-- 包裹明细列表 -->
          <view class="my_dingdan_details_item2_title">
            <image :src="imgUrl + '/dzx_img47.png'"></image>
            <text>{{ $t("page_my_dingdan_details.package_information") }}</text>
          </view>
          <view class="my_dingdan_details_item2_list" v-for="(items, index) in xiangqingdetail.package" :key="index">
			<uni-collapse ref="collapse" v-model="value">  
			<uni-collapse-item :title="$t('page_my_dingdan_details.parcel_no') + '：' + items.express_num" show-animation="true"> 
            <view class="my_dingdan_details_item2_cont">
              <view class="my_dingdan_details_item2_l">
                <image :src="imgUrl + '/dzx_img23.png'"></image>
                <text>{{ $t("page_my_dingdan_details.parcel_no") }}</text>
              </view>
              <view class="my_dingdan_details_item2_r">
                <text>{{ items && items.express_num }}</text>
              </view>
            </view>

            <view class="my_dingdan_details_item2_cont">
              <view class="my_dingdan_details_item2_l">
                <image :src="imgUrl + '/dzx_img24.png'"></image>
                <text>{{
                  $t("page_my_dingdan_details.logistics_transportation")
                }}</text>
              </view>
              <view class="my_dingdan_details_item2_r">
                <text>{{
                  items.express_name
                    ? items.express_name
                    : $t("page_my_dingdan_details.other")
                }}</text>
              </view>
            </view>
			<!-- 包裹内容 -->
			<view class="my_dingdan_details_item2_cont" v-for="(item, index) in items.packitem" :key="index">
			  <view class="my_dingdan_details_item2_l">
				<image :src="imgUrl + '/dzx_img28.png'"></image>
				<text>{{ $t("page_my_dingdan_details.commodity_category") }}</text>
			  </view>
			  <view class="my_dingdan_details_item2_r" @click="tiaozhuan(items.id)">
				<text style="color: #27cc9d ;">{{ $t("page_my_dingdan_details.chakanmingxi") }}</text>
			  </view>
			</view>
			
            <view class="my_dingdan_details_item2_cont">
              <view class="my_dingdan_details_item2_l">
                <image :src="imgUrl + '/dzx_img30.png'"></image>
                <text>{{ $t("page_my_dingdan_details.long_w_h_w") }}</text>
              </view>
              <view class="my_dingdan_details_item2_r">
                <text>{{ items.length }}/{{ items.width }}/{{ items.height }}/{{ items.weight }}</text>
              </view>
            </view>
			
            <view class="my_dingdan_details_item2_cont">
              <view class="my_dingdan_details_item2_l">
                <image :src="imgUrl + '/dzx_img50.png'"></image>
                <text>{{ $t("page_my_dingdan_details.storage_time") }}</text>
              </view>
              <view class="my_dingdan_details_item2_r">
                <text>{{ items.entering_warehouse_time }}</text>
              </view>
            </view>

            <view
              class="my_dingdan_details_item2_cont"
              v-if="items.remark != ''"
            >
              <view class="my_dingdan_details_item2_l">
                <image :src="imgUrl + '/dzx_img30.png'"></image>
                <text>{{ $t("page_my_dingdan_details.remarks") }}</text>
              </view>
              <view class="my_dingdan_details_item2_r">
                <text>{{ items.remark ? items.remark : "" }}</text>
              </view>
            </view>
			
			<!--包裹图片-->
            <view class="my_dingdan_details_item2_cont" style="display: block" v-if="xiangqingdetail.packageimages[index].packageimage != ''">
              <view class="my_dingdan_details_item2_l">
                <image :src="imgUrl + '/dzx_img30.png'"></image>
                <text>{{ $t("page_my_dingdan_details.package_image") }}</text>
              </view>
              <view style="overflow: scroll" class="my_dingdan_details_item2_r" :data-url="xiangqingdetail.packageimages[index]" @click="previewImageplus">
                <view
                  class="index_item5_cont_bottom_imgs"
                  v-for="(item, index1) in xiangqingdetail.packageimages[index].packageimage"
                  :key="index1"
                  :data-url="item"
                  :data-index="index1"
                  @click="getIndex">
                  <image :src="item && item.file_path" mode="aspectFill"></image>
                </view>
              </view>
			</view> 
			</uni-collapse-item>
			</uni-collapse> 
            </view>
            <view style="background: #eee; height: 1px; margin-bottom: 15px"></view>
          </view>
        </view>
		<!-- 线路信息 -->
        <view class="my_dingdan_details_item3">
          <view class="my_dingdan_details_item2_title">
            <image :src="imgUrl + '/dzx_img47.png'"></image>
            <text>{{ $t("page_my_dingdan_details.selected_line") }}</text>
          </view>
          <view class="my_dingdan_details_item3_dis">
            <image
              :src="xiangqingdetail.line && xiangqingdetail.line.image && xiangqingdetail.line.image.file_path"
              mode="aspectFill"
            ></image>
            <view class="my_dingdan_details_item3_txt">
              <view class="my_dingdan_details_item3_t1">{{xiangqingdetail.line?xiangqingdetail.line.name:""}}</view>
              <view class="my_dingdan_details_item3_t2">
                {{ $t("page_my_dingdan_details.Shipping_freight") }}
                <text>{{ price_mode.unit }}{{ xiangqingdetail.free }}</text>
              </view>
              <view class="my_dingdan_details_item3_t2">
                {{ $t("page_my_dingdan_details.time_delivery") }}
                <text>{{ xiangqingdetail.line?xiangqingdetail.line.limitationofdelivery:"" }}</text>
              </view>
            </view>
          </view>
        </view>

        <view class="my_dingdan_details_item4">
          <view class="my_dingdan_details_item2_title">
            <image :src="imgUrl + '/dzx_img47.png'"></image>
            <text>{{
              $t("page_my_dingdan_details.package_information2")
            }}</text>
          </view>
          <view class="my_dingdan_details_item2_list">
            <view class="my_dingdan_details_item2_cont">
              <view class="my_dingdan_details_item2_l">
                <image :src="imgUrl + '/dzx_img50.png'"></image>
                <text>{{ $t("page_my_dingdan_details.gross_weight") }}</text>
              </view>
              <view class="my_dingdan_details_item2_r">
                <text>{{ xiangqingdetail.weight }}{{ weight_mode.unit }}</text>
                <!-- <image src="../../images/dzx_img48.png'"></image> -->
              </view>
            </view>
            <view class="my_dingdan_details_item2_cont">
              <view class="my_dingdan_details_item2_l">
                <image :src="imgUrl + '/dzx_img50.png'"></image>
                <text>{{ $t("page_my_dingdan_details.long_w_h_v") }}</text>
              </view>
              <view class="my_dingdan_details_item2_r">
                <text>
                  {{ xiangqingdetail.length }}/{{ xiangqingdetail.width }}/{{
                    xiangqingdetail.height
                  }}/{{ xiangqingdetail.volume }}{{ weight_mode.unit }}
                </text>
                <!-- <image src="../../images/dzx_img48.png'"></image> -->
              </view>
            </view>
          </view>
          <view class="my_dingdan_details_item2_cont">
            <view class="my_dingdan_details_item2_l">
              <image :src="imgUrl + '/dzx_img50.png'"></image>
              <text>{{ $t("page_my_dingdan_details.chargeable_weight") }}</text>
            </view>
            <view class="my_dingdan_details_item2_r">
              <text
                >{{ xiangqingdetail.cale_weight }}{{ xiangqingdetail.weight_unit[xiangqingdetail.line?xiangqingdetail.line.line_type_unit:10] }}</text
              >
            </view>
          </view>
        </view>
        <view class="my_dingdan_details_item4">
          <view class="my_dingdan_details_item2_title">
            <image :src="imgUrl + '/dzx_img47.png'"></image>
            <text>{{
              $t("page_my_dingdan_details.shipping_information")
            }}</text>
          </view>
          <view class="my_dingdan_details_item2_list">
            <view class="my_dingdan_details_item2_cont">
              <view class="my_dingdan_details_item2_l">
                <image :src="imgUrl + '/dzx_img29.png'"></image>
                <text>{{ $t("page_my_dingdan_details.Base_freight") }}</text>
              </view>
              <view class="my_dingdan_details_item2_r">
                <text>{{ xiangqingdetail.free }}{{ price_mode.unit }}</text>
              </view>
            </view>
            <view class="my_dingdan_details_item2_cont">
              <view class="my_dingdan_details_item2_l">
                <image :src="imgUrl + '/dzx_img50.png'"></image>
                <text>{{$t("page_my_dingdan_details.packaging_service")}}</text>
              </view>
              <view class="my_dingdan_details_item2_r">
                <text>{{ xiangqingdetail.pack_free }}{{ price_mode.unit }}</text>
              </view>
            </view>
			<view class="my_dingdan_details_item2_cont">
			  <view class="my_dingdan_details_item2_l">
			    <image :src="imgUrl + '/dzx_img50.png'"></image>
			    <text>{{ $t("page_my_dingdan_details.insure_free") }}</text>
			  </view>
			  <view class="my_dingdan_details_item2_r">
			    <text>{{ xiangqingdetail.insure_free }}{{ price_mode.unit }}</text>
			  </view>
			</view>
            <view class="my_dingdan_details_item2_cont">
              <view class="my_dingdan_details_item2_l">
                <image :src="imgUrl + '/dzx_img50.png'"></image>
                <text>{{ $t("page_my_dingdan_details.Other_expenses") }}</text>
              </view>
              <view class="my_dingdan_details_item2_r">
                <text>{{ xiangqingdetail.other_free }}{{ price_mode.unit }}</text>
              </view>
            </view>
			<!-- 优惠券下拉选择 -->
            <view class="my_dingdan_details_item2_cont" v-if="xiangqingdetail.is_pay == 2 && xiangqingdetail.status>1">
              <view class="my_dingdan_details_item2_l">
                <image :src="imgUrl + '/dzx_img49.png'"></image>
                <text>{{ $t("page_my_dingdan_details.Select_coupon") }}</text>
              </view>
              <view v-if="couponlist && couponlist.coupon_id" class="my_dingdan_details_item2_r" @tap="choosecoupon">
                <text>{{ couponlist.name }}</text>
                <image style="width: 14rpx; height: 24rpx" :src="imgUrl + '/dzx_img42.png'"></image>
              </view>
              <view
                v-if="!couponlist || !couponlist.coupon_id"
                class="my_dingdan_details_item2_r"
                @tap="choosecoupon"
              >
                <text>{{ $t("page_my_dingdan_details.p_Select_coupon") }}</text>
                <image
                  style="width: 14rpx; height: 24rpx"
                  :src="imgUrl + '/dzx_img42.png'"
                ></image>
              </view>
            </view>
            <view
              class="my_dingdan_details_item2_cont"
              v-if="
                xiangqingdetail.status > 2 && xiangqingdetail.user_coupon_money
              "
            >
              <view class="my_dingdan_details_item2_l">
                <image :src="imgUrl + '/dzx_img49.png'"></image>
                <text>{{ $t("page_my_dingdan_details.Discount_amount") }}</text>
              </view>
              <view class="my_dingdan_details_item2_r">
                <text
                  >{{ price_mode.unit
                  }}{{
                    xiangqingdetail.user_coupon_money
                      ? xiangqingdetail.user_coupon_money
                      : ""
                  }}</text
                >
              </view>
            </view>
          </view>
          <view class="my_dingdan_details_item4_txt">
            <text
              :style="
                xiangqingdetail.fyouhui_total != 0
                  ? 'text-decoration:line-through;color:#929292'
                  : ''
              "
            >
              {{ $t("page_my_dingdan_details.Original_price")
              }}{{ price_mode.unit }}{{ xiangqingdetail.free_total }}
            </text>
          </view>
          <view
            v-if="xiangqingdetail.fyouhui_total != 0"
            class="my_dingdan_details_item4_txt"
          >
            <text
              >{{ $t("page_my_dingdan_details.Preferential_price")
              }}{{ price_mode.unit }}{{ xiangqingdetail.fyouhui_total }}</text
            >
          </view>
        </view>
        <view
          class="my_chongzhi_item3"
          v-if="xiangqingdetail.is_pay == 2 && xiangqingdetail.status != 1"
        >
          <view class="my_chongzhi_item2_title">
            <image :src="imgUrl + '/dzx_img47.png'"></image>
            <text>{{ $t("page_my_dingdan_details.payment_method") }}</text>
          </view>
          <view class="my_chongzhi_item3_list">
            <block v-for="(item, index) in payTypes" :key="index">
              <view
                class="my_chongzhi_item3_cont"
                :data-type="item.value"
                @tap="paytypeChange"
              >
                <view class="my_chongzhi_item3_cont_l">
                  <image :src="item.icon"></image>
                  <text>{{ item.name }}</text>
                </view>
                <view
                  class="my_chongzhi_item3_cont_r"
                  v-if="paytype == item.value"
                >
                  <image :src="imgUrl + '/dzx_img131.png'" />
                </view>
                <view class="my_chongzhi_item3_cont_r" v-else>
                  <image :src="imgUrl + '/dzx_img132.png'" />
                </view>
              </view>
            </block>
          </view>
        </view>

        <!-- 支付方式 -->
        <view class="my_chongzhi_item3" v-if="xiangqingdetail.is_pay == 1">
          <view class="my_chongzhi_item2_title">
            <image :src="imgUrl + '/dzx_img47.png'"></image>
            <text>{{ $t("page_my_dingdan_details.payment_method") }}</text>
          </view>
          <view class="my_chongzhi_item3_list">
            <view
              class="my_chongzhi_item3_cont"
              v-if="xiangqingdetail.is_pay_type == 1"
            >
              <view class="my_chongzhi_item3_cont_l">
                <image :src="imgUrl + '/dzx_img128.png'"></image>
                <text>{{ $t("page_my_dingdan_details.wx_pay") }}</text>
              </view>
              <view class="my_chongzhi_item3_cont_r"
                ><image :src="imgUrl + '/dzx_img131.png'"></image
              ></view>
            </view>
            <view
              class="my_chongzhi_item3_cont"
              v-if="xiangqingdetail.is_pay_type == 2"
            >
              <view class="my_chongzhi_item3_cont_l">
                <image :src="imgUrl + '/dzx_img130.png'"></image>
                <text>{{ $t("page_my_dingdan_details.balance_payment") }}</text>
              </view>
              <view class="my_chongzhi_item3_cont_r"
                ><image :src="imgUrl + '/dzx_img131.png'"></image
              ></view>
            </view>
            <view
              class="my_chongzhi_item3_cont"
              v-if="xiangqingdetail.is_pay_type == 3 || xiangqingdetail.is_pay_type == 4"
            >
              <view class="my_chongzhi_item3_cont_l">
                <image :src="imgUrl + '/dzx_img130.png'"></image>
                <text>{{ $t("page_my_dingdan_details.hunter_pay") }}</text>
              </view>
              <view class="my_chongzhi_item3_cont_r"
                ><image :src="imgUrl + '/dzx_img131.png'"></image
              ></view>
            </view>
          </view>
        </view>
        <view
          class="my_dingdan_details_item5"
          v-if="xiangqingdetail.status == 5"
        >
          <view class="my_dingdan_details_item5_dis">
            <view class="my_dingdan_details_item5_l">
              <view class="my_dingdan_details_item5_t1"
                >{{ $t("page_my_dingdan_details.actual_payment")
                }}{{ price_mode.unit }}{{ xiangqingdetail.free_total }}</view
              >
            </view>
            <view
              class="my_dingdan_details_item5_r"
              @tap="quzhifu"
              :data-id="xiangqingdetail.id"
              >{{ $t("page_my_dingdan_details.Confirmation_payment") }}</view
            >
          </view>
        </view>
		<view class="my_dingdan_details_item3" v-if="paytype==60">
		  <view class="my_dingdan_details_item2_title">
		    <image :src="imgUrl + '/dzx_img47.png'"></image>
		    <text>{{ $t("page_my_dingdan_details.xianxiazhifu") }}</text>
		  </view>
		  <view class="my_dingdan_details_item2_list">
		    <view class="index_center">
		        <view class="my_pinzhenglist_center">
		            <view class="index_swiper">
		                <!--Tab布局-->
		                <view class="index_title">
		                    <block v-for="(item, index) in malllist" :key="index">
		                        <view :data-id="item.id" :class="'mall_dis ' + (currentIndex == index ? 'mall_on' : '')" @tap="getcurrentid">
		                            <view class="mall_t1">{{ item.name }}</view>
		                        </view>
		                    </block>
		                </view>
		                <!--内容布局-->
		                <view class="index_list" v-if="currentIndex==0">
		                    <swiper class="swiper paid_list_cont" 
									:indicator-dots="indicatorDots"
									:vertical="vertical"
									:autoplay="autoplay"
									:duration="duration"
									:interval="interval"
									:indicator-color="color"
									:indicator-active-color="colors"
									:circular="circular">
		                        <block>
		                            <swiper-item v-if="banklist.length !=0" v-for="(item, index) in banklist">
										<view class="my_yhq_list" >
											<view class="my_yhq_cont my_huikuan_item2_cont">
												<view class="my_huikuan_item2_cont_l">
													<view class="my_huikuan_item2_t1" v-if="item.bank_name">
														{{ $t('page_my_huikuan.bank_name') }}：{{ item['bank_name'] }}
													</view>
													<view class="my_huikuan_item2_t1" v-if="item.bank_card">
														{{ $t('page_my_huikuan.account') }}：{{ item['bank_card'] }}
													</view>
													<view class="my_huikuan_item2_t1" v-if="item.open_name">
														{{ $t('page_my_huikuan.account_holder') }}：{{ item['open_name'] }}
													</view>
													<view class="my_huikuan_item2_t1" v-if="item.child_bank_name">
														{{ $t('page_my_huikuan.account_opening_branch') }}：{{ item['child_bank_name'] }}
													</view>
												</view>
												<view
													class="my_huikuan_item2_cont_r"
													:data-card="$t('page_my_huikuan.bank_name') + item['bank_name'] +
															'，' + $t('page_my_huikuan.account') +
															'：' + item['bank_card'] +
															'，' + $t('page_my_huikuan.account_holder') +
															'：' + item['open_name'] +
															'，' + $t('page_my_huikuan.account_opening_branch') +
															'：' + item['child_bank_name']
													"
													@tap="bindCopy"
												>
													{{ $t('page_my_huikuan.one_click_copy') }}
												</view>
											</view>
										</view>
		                            </swiper-item>
		                        </block>
		                    </swiper>
		                </view>
						
						<view class="index_list" v-if="currentIndex==1">
						    <swiper class="swiper paid_list_cont" 
									:indicator-dots="indicatorDots"
									:vertical="vertical"
									:autoplay="autoplay"
									:duration="duration"
									:interval="interval"
									:indicator-color="color"
									:indicator-active-color="colors"
									:circular="circular">
						        <block>
						            <swiper-item v-if="bankimagelist.length !=0" v-for="(item, index) in bankimagelist">
										<view class="my_yhq_list" >
											<view class="my_yhq_cont my_huikuan_item2_cont">
												<view class="my_huikuan_item2_cont_l">
													<view class="my_huikuan_item2_t1 bankimage" :data-url="item" @click="previewImagebank">
														<image :src="item.image?item.image.file_path:''"></image>
													</view>
												</view>
											</view>
										</view>
						            </swiper-item>
						        </block>
						    </swiper>
						</view>
						<!-- 淘宝店铺 -->
						<!-- <view class="index_list" v-if="currentIndex==2">
						    <swiper class="swiper paid_list_cont" 
									:indicator-dots="indicatorDots"
									:vertical="vertical"
									:autoplay="autoplay"
									:duration="duration"
									:interval="interval"
									:indicator-color="color"
									:indicator-active-color="colors"
									:circular="circular">
						        <block>
						            <swiper-item v-if="banklist.length !=0" v-for="(item, index) in banklist">
										<view class="my_yhq_list" >
											<view class="my_yhq_cont my_huikuan_item2_cont">
												<view class="my_huikuan_item2_cont_l">
													<view class="my_huikuan_item2_t1" v-if="item.bank_name">
														{{ $t('page_my_huikuan.bank_name') }}：{{ item['bank_name'] }}
													</view>
													<view class="my_huikuan_item2_t1" v-if="item.bank_card">
														{{ $t('page_my_huikuan.account') }}：{{ item['bank_card'] }}
													</view>
													<view class="my_huikuan_item2_t1" v-if="item.open_name">
														{{ $t('page_my_huikuan.account_holder') }}：{{ item['open_name'] }}
													</view>
													<view class="my_huikuan_item2_t1" v-if="item.child_bank_name">
														{{ $t('page_my_huikuan.account_opening_branch') }}：{{ item['child_bank_name'] }}
													</view>
												</view>
												<view
													class="my_huikuan_item2_cont_r"
													:data-card="$t('page_my_huikuan.bank_name') + item['bank_name'] +
															'，' + $t('page_my_huikuan.account') +
															'：' + item['bank_card'] +
															'，' + $t('page_my_huikuan.account_holder') +
															'：' + item['open_name'] +
															'，' + $t('page_my_huikuan.account_opening_branch') +
															'：' + item['child_bank_name']
													"
													@tap="bindCopy"
												>
													{{ $t('page_my_huikuan.one_click_copy') }}
												</view>
											</view>
										</view>
						            </swiper-item>
						        </block>
						    </swiper>
						</view> -->
						
		            </view>
					<view class="cangkuyuan_saomaruku_item1_cont2" style="border-bottom: none">
					    <view class="cangkuyuan_saomaruku_item1_cont_l">
					        <image :src="imgUrl+'/dzx_img192.png'"></image>
					        <text>{{$t('page_other.上传支付凭证')}}</text>
					    </view>
					    <view class="cangkuyuan_saomaruku_item2_r5" >						
					        <view  :data-id="item" :data-index="index" @click="deleteimg" v-for="(item,index) in imageSrc" :key="index" class="cangkuyuan_saomaruku_item2_r5_img" >
								<image :src="item"></image>
					        </view>
					
							<view class="cangkuyuan_saomaruku_item2_r5_img" @click="toSelectImage()">
								<image :src="imgUrl+'/dzx_img193.png'"></image>
							</view>
					    </view>
					</view>
		        </view>
		    </view>
		  </view>
		</view>
        <view class="my_dingdan_details_item3">
          <view class="my_dingdan_details_item2_title">
            <image :src="imgUrl + '/dzx_img47.png'"></image>
            <text>{{ $t("page_my_dingdan_details.remarks2") }}</text>
          </view>
          <view class="my_dingdan_details_item2_list">
            <view class="my_dingdan_details_item2_cont">
              <view class="my_dingdan_details_item2_l">
                <image :src="imgUrl + '/dzx_img30.png'"></image>
                <text>{{ $t("page_my_dingdan_details.remarks") }}</text>
              </view>
              <view class="my_dingdan_details_item2_r2">{{
                xiangqingdetail.remark
                  ? xiangqingdetail.remark
                  : $t("page_my_dingdan_details.no_remarks")
              }}</view>
            </view>
          </view>
        </view>
		<!-- 图片信息 -->
        <view class="my_dingdan_details_item3">
          <view class="my_dingdan_details_item2_title">
            <image :src="imgUrl + '/dzx_img47.png'"></image>
            <text>{{ $t("page_my_dingdan_details.Picture_information") }}</text>
          </view>
          <view class="my_dingdan_details_item2_list pcicang">
            <view class="my_dingdan_details_item2_cont">
              <view
                class="index_item5_cont_bottom_img"
                :data-url="xiangqingdetail"
                v-if="xiangqingdetail.inpackimage != ''"
                @click="previewImage"
              >
                <view
                  class="index_item5_cont_bottom_imgs"
                  v-for="(item, index1) in xiangqingdetail.inpackimage"
                  :key="index1"
                  :data-url="item"
                  :data-index="index1"
                  @click="getIndex"
                >
                  <image
                    :src="item && item.file_path"
                    mode="aspectFill"
                  ></image>
                </view>
              </view>
            </view>
          </view>
        </view>

        <view
          class="my_dingdan_details_item5"
          v-if="
            xiangqingdetail.status != 6 &&
            xiangqingdetail.status != 7 &&
            xiangqingdetail.status != 8 &&
            xiangqingdetail.status != 9
          "
        >
          <view class="my_dingdan_details_item5_dis">
            <view
              class="my_dingdan_details_item5_r2"
              @tap="quxiaodingdan"
              :data-id="xiangqingdetail.id"
              >{{ $t("page_my_dingdan_details.cancel_order") }}</view
            >
          </view>
        </view>
        <view
          class="my_dingdan_details_item5"
          v-if="xiangqingdetail.status == 6 || xiangqingdetail.status != 1"
        >
          <view
            class="my_dingdan_details_item5_dis"
            :style="
              xiangqingdetail.status == 6 ? '' : 'justify-content: flex-end;'
            "
          >
            <view
              class="my_dingdan_details_item5_btn1"
              v-if="xiangqingdetail.status != 1"
              @tap="wuliu"
              :data-id="
                xiangqingdetail.t_order_sn
                  ? xiangqingdetail.t_order_sn
                  : xiangqingdetail.item
                  ? xiangqingdetail.item[0].express_num
                  : ''
              "
            >
              {{ $t("page_my_dingdan_details.check_logistics") }}
            </view>
            <view
              class="my_dingdan_details_item5_btn2"
              v-if="xiangqingdetail.status == 6"
              @tap="querenqianshou"
              :data-id="xiangqingdetail.id"
            >
              {{ $t("page_my_dingdan_details.confirm_receipt") }}
            </view>
            <view
              class="my_dingdan_details_item5_btn2"
              v-if="xiangqingdetail.is_pay == 2"
              @tap="quzhifu"
              :data-id="xiangqingdetail.id"
            >
              {{ $t("page_my_dingdan_details.to_pay") }}
            </view>
          </view>
        </view>
        <view
          class="my_dingdan_details_item5"
          v-if="xiangqingdetail.status == 7"
        >
          <view
            class="my_dingdan_details_item5_dis"
            style="justify-content: flex-end"
          >
            <!-- <view class="my_dingdan_details_item5_btn1">删除订单</view> -->
            <view
              class="my_dingdan_details_item5_btn2"
              @tap="qupinglun"
              :data-id="xiangqingdetail.id"
              >{{ $t("page_my_dingdan_details.View_comments") }}</view
            >
            <view
              class="my_dingdan_details_item5_btn2"
              v-if="xiangqingdetail.is_pay == 2"
              @tap="quzhifu"
              :data-id="xiangqingdetail.id"
            >
              {{ $t("page_my_dingdan_details.to_pay") }}
            </view>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
// pages/shouye/shouye_zkc/shouye_zkc.js
const app = getApp();

let request = require("../../../utils/require");

export default {
  data() {
    return {
	  cupponlist:[],
      navH: app.globalData.navHeight,
      gaodu: app.globalData.height,
      gaodutops: app.globalData.top,
      imgUrl: app.globalData.imgUrl,
      urlimg: app.globalData.urlimg,
      leixing: 4,
      rtype: 1,
      setting: uni.getStorageSync("setting"),
      weight_mode: uni.getStorageSync("weight_mode"),
      price_mode: uni.getStorageSync("price_mode"),
      paysetting: uni.getStorageSync("paytype"),
	  //轮播图
	  circular: true, 
	  unitwei:[
		{
		  'value':10,
		  'label':'g'
		},
		{
		  'value':20,
		  'label':'kg'
		},
		{
		  'value':30,
		  'label':'lbs'
		},
		{
		  'value':40,
		  'label':'cbm'
		}],
	  //是否显示画板指示点
	  indicatorDots: false,
	  //选中点的颜色
	  colors: '#5D59EC',
	  //未选中点的颜色
	  color: '#fff',
	  //是否竖直
	  vertical: false,
	  //是否自动切换
	  autoplay: true, 
	  //自动切换的间隔
	  interval: 5000,
	  //滑动动画时长毫秒
	  duration: 1000,
	  malllist: [
	      {
	          id: 0,
	          name: this.$t('page_other.银行转账')
	      },
	      {
	          id: 1,
	          name: this.$t('page_other.收款码')
	      },
	      // {
	      //     id: 2,
	      //     name: '淘宝店铺'
	      // }
	  ],
      //状态 1 待查验 2 待支付 3 待发货 4 拣货中 5 已打包  6已发货 7 已到货 8 已完成  9已取消 10草稿
      arrlist: [
        {
          id: 1,
          name: this.$t('myorderdetail.待查验'),
          title: this.$t('myorderdetail.您的包裹正在等待查验'),
          img: "dzx_img44.png",
        },
        {
          id: 2,
          name: this.$t('myorderdetail.待付款'),
          title: this.$t('myorderdetail.您有一笔订单未支付'),
          img: "dzx_img52.png",
        },
        {
          id: 3,
          name: this.$t('myorderdetail.待发货'),
          title: this.$t('myorderdetail.您的订单待发货'),
          img: "dzx_img52.png",
        },
        {
          id: 4,
          name: this.$t('myorderdetail.拣货中'),
          title: this.$t('myorderdetail.分拣员正在飞速拣货中'),
          img: "dzx_img44.png",
        },
        {
          id: 5,
          name: this.$t('myorderdetail.已打包'),
          title: this.$t('myorderdetail.您的包裹已打包'),
          img: "dzx_img55.png",
        },
        {
          id: 6,
          name: this.$t('myorderdetail.已发货'),
          title: this.$t('myorderdetail.您的包裹已发货'),
          img: "dzx_img54.png",
        },
        {
          id: 7,
          name: this.$t('myorderdetail.已到货'),
          title: this.$t('myorderdetail.订单已到货'),
          img: "dzx_img55.png",
        },
        {
          id: 8,
          name: this.$t('myorderdetail.已完成'),
          title: this.$t('myorderdetail.您的订单已完成'),
          img: "dzx_img55.png",
        },
        {
          id: -1,
          name: this.$t('myorderdetail.问题件'),
          title: this.$t('myorderdetail.包裹为问题件，请等待处理'),
          img: "dzx_img55.png",
        }
      ],

      xiangqingdetail: {
        status: "",

        address: {
          name: "",
          phone: "",
          country: "",
          province: "",
          city: "",
          region: "",
          detail: "",
        },

        id: "",
        order_sn: "",
        item: [],

        line: {
          image: "",
          name: "",
          limitationofdelivery: "",
        },

        free: "",
        weight: "",
        length: "",
        width: "",
        height: "",
        volume: "",
        cale_weight: "",
        pack_free: "",
        other_free: "",
        free_total: "",
        remark: "",
        express_num: "",
      },
      artimages: [],
      imgindex: 0,
      index1: 0,
      banertrue: false,
      ids: "",
      address_id: "",
      banklist: [],
	  bankimagelist: [],
	  currentIndex: uni.getStorageSync("currentIndex")?uni.getStorageSync("currentIndex"):0,
	  width: 0,
	  left: 0,
	  couponlist:[],
	  imageSrc:[],
	  imageIds:[],
    };
  },
  onPageScroll: function (e) {
    if (e.scrollTop > this.navH + 50) {
      this.banertrue= true
    } else {
      this.banertrue= false
    }
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    var that = this;
    that.ids= options.id
    that.rtype= options.rtype ? options.rtype : 1
	this.getPaySetting();
  },
  onShow() {
    var that = this;
    that.xiangqing(); //返回地址id
    let pages = getCurrentPages();
    let currPage = pages[pages.length - 1];
    if (currPage.data && currPage.data.address_id) {
      this.address_id= currPage.data.address_id
    }
    if (that.address_id) {
      that.genghuandizhi2();
    }
    //获取优惠券信息
    // if (currPage.data && currPage.data.coupon_id) {
    //   this.coupon_id= currPage.data.coupon_id
    // }
	that.coupon_id= currPage.coupon_id
    if (that.coupon_id) {
      that.getcoupon(that.coupon_id);
    }
	this.getBankCardList();
	this.getBankImageList();
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {},
  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {},
  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {},
  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {},
  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {},
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {},
  methods: {
		deleteimg(e){
			console.log(e,99000);
			var that = this;
			var imglist = that.imageSrc;
			var index = e.currentTarget.dataset.index;
			//splice会改变原数组
			var imageIdlist = that.imageIds;
			console.log(imgid,99001);
			imglist.splice(index, 1)
			imageIdlist.splice(index, 1)
			this.imageIds = imageIdlist
			console.log(this.imageIds,999)
		},
	  toSelectImage(){
	  	var that = this;
	  	uni.chooseImage({
	  			count: 1, // 最多可以选择的图片张数，默认9
	  			sizeType: ['original', 'compressed'], //original 原图，compressed 压缩图，默认二者都有
	  			sourceType: ['album', 'camera'], 
	  			success: function(res) {
	  				//判断图片格式
	  				uni.showLoading({
	  					title:''
	  				})
	  				console.log(res)
	  				for(var i=0;i<res.tempFiles.length;i++){
	  					if(res.tempFiles[0]['size']>2*1024*1024){
	  						uni.showToast({
	  							title:that.$t('page_other.图片大小不能超过2M'),
	  							icon: 'none',
	  							duration: 3000
	  						});
	  						return;
	  					}
						if(that.imageSrc.length>=1){
							uni.showToast({
								title:that.$t('page_other.只能上传一张凭证'),
								icon: 'none',
								duration: 3000
							});
							return;
						}
	  					that.uploadImgFile(res.tempFiles[0])
	  				}	
	  			}
	  		});
	  },
	  uploadImgFile(filePath){
	  	 var that = this;
	  	 console.log(filePath,77)
	  	 uni.uploadFile({
	  			url:app.globalData['url']+"/index.php?s=/api/upload/image&wxapp_id="+ uni.getStorageSync('web_id')+"&token="+uni.getStorageSync('token'),
	  			filePath: filePath.path,
	  			name: 'iFile',
	  			success: response => {
	  				let res = JSON.parse(response.data);
	  				uni.hideLoading();
	  				console.log(res,987654)
	  				if (res.code == 1) {
	  					that.imageSrc.push(res.data.file_path);
	  					that.imageIds.push(res.data.file_id);
	  				}
	  				console.log(that.imageIds, '--666--res');
	  			},
	  			fail: err => {
	  				uni.hideLoading()
	  			}
	  	    });
	  },
	bindCopy(e) {
		var card = e.currentTarget.dataset.card;
		let that = this
		uni.setClipboardData({
			data: card,
			success: function(res) {
				uni.getClipboardData({
					success: function(res) {
						uni.showToast({
							title:that.$t('page_other.复制成功')
						});
					}
				});
			}
		});
	},
	getBankCardList() {
		var that = this;
		var url = 'index.php?s=/api/page/bankCardList';
		var data = {};
		request.post(url + `&wxapp_id=` + uni.getStorageSync('web_id'), data).then(res => {
			if (res.data.code == 1) {
				if (that.page > res.data.data.last_page) {
					that.ispage = false
				} else {
					that.banklist = that.banklist.concat(res.data.data.data.data)
				}
			}
		});
	},
	getBankImageList() {
		var that = this;
		var url = 'index.php?s=/api/page/bankCardImageList';
		var data = {};
		request.post(url + `&wxapp_id=` + uni.getStorageSync('web_id'), data).then(res => {
			if (res.data.code == 1) {
				if (that.page > res.data.data.last_page) {
					that.ispage = false
				} else {
					that.bankimagelist = that.bankimagelist.concat(res.data.data.data.data)
				}
			}
		});
	},
	//swiper单击事件
	getcurrentid(e) {
		this.currentIndex= e.currentTarget.dataset.id
		uni.setStorageSync("currentIndex",this.currentIndex);
	},
	//swiper切换时会调用
	pagechange: function(e) {
		var that = this;
		that.currentIndex= e.detail.current
	},
	tiaozhuan(e) {
		uni.navigateTo({
			url: '/pages/indexs/dairuku_xq/dairuku_xq?id=' + e
		});
	},
    //复制
    fuzhi: function (e) {
      var that = this;
      uni.setClipboardData({
        data: e.currentTarget.dataset.name,
        success: function (res) {
          uni.getClipboardData({
            success: function (res) {
              uni.showToast({
                title:that.$t('page_other.复制成功'),
              });
            },
          });
        },
      });
    },
    //获取优惠券
    getcoupon(e) {
      var that = this;
      var data = {
        token: uni.getStorageSync("token"),
        coupon_id: e,
      };
      request
        .post(
          `index.php?s=/api/coupon/couponDetail&wxapp_id=` +
            uni.getStorageSync("web_id"),
          data
        )
        .then((res) => {
          if (res.data.code == 1) {
            console.log(res.data.data.couponData);
            that.couponlist= res.data.data.couponData
          }
        });
      setTimeout(() => {
        that.xiangqing();
      }, 100);
    },
    getIndex(e) {
      this.imgindex= e.currentTarget.dataset.index
    },
	previewImagebank(e) {
	  var artimages = e.currentTarget.dataset.url.image.file_path
	  uni.previewImage({
	    current: 0,
	    urls: [artimages],
	  });
	},
    previewImage(e) {
      var len = e.currentTarget.dataset.url.inpackimage.length;
      console.log(len, 88888);
      var artimages = this.artimages;
      for (var i = 0; i < len; i++) {
        artimages[i] = e.currentTarget.dataset.url.inpackimage[i].file_path;
      }
      uni.previewImage({
        current: this.imgindex,
        urls: this.artimages,
      });
    },
    previewImageplus(e) {
      console.log(e, 88888);
      var len = e.currentTarget.dataset.url.packageimage.length;
      console.log(len, 88888);
      var artimages = this.artimages;
      for (var i = 0; i < len; i++) {
        artimages[i] = e.currentTarget.dataset.url.packageimage[i].file_path;
      }
      uni.previewImage({
        current: this.imgindex,
        urls: this.artimages,
      });
    },
    //查看评论
    gohotpinlun(e) {
      uni.navigateTo({
        url:
          "/pages/indexs/hotpinlun/hotpinlun?type=1&id=" +
          e.currentTarget.dataset.id,
      });
    },

    quzhifu(e) {
      var that = this;
	  console.log(e,987);
      uni.showModal({
        title: that.$t('page_other.提示'),
        content:that.$t('page_other.确认是否支付?') ,
        success(res) {
          if (res.confirm) {
            var data = {
              token: uni.getStorageSync("token"),
              id: e.currentTarget.dataset.id,
              paytype: that.paytype,
			  image:that.imageIds,
              coupon_id: that.coupon_id,
            };
            that
              .pay(data)
              .then(() => {
                setTimeout((res) => {
                  uni.showToast({
                    title:that.$t('page_other.支付成功'),
                  });
                  uni.navigateTo({
                    url: "/pages/indexs/my_dingdan/my_dingdan?id=2&type=nopay",
                  });
                }, 1000);
              })
              .catch((err) => {
                console.error(err);
                uni.showToast({
                  icon: "none",
                  title:that.$t('page_other.用户取消支付'),
                });
              });
          } else {
            if (res.cancel) {
              console.log("用户点击取消");
            }
          }
        },
		
      });
    },

    //取消订单
    quxiaodingdan(e) {
      var that = this;
      var data = {
        token: uni.getStorageSync("token"),
        id: e.currentTarget.dataset.id,
      };
      uni.showModal({
        title:that.$t('page_other.取消订单产生费用'),

        success(res) {
          if (res.confirm) {
            request
              .post(
                `index.php?s=/api/package/canclePack&wxapp_id=` +
                  uni.getStorageSync("web_id"),
                data
              )
              .then((res) => {
                if (res.data.code == 1) {
                  uni.showToast({
                    title: res.data.data,
                  });
                  setTimeout(() => {
                    uni.navigateBack({
                      delta: 0,
                    });
                  }, 1000);
                } else {
                  uni.showToast({
                    title: res.data.msg,
                    icon: "none",
                  });
                }
              });
          } else {
            if (res.cancel) {
            }
          }
        },
      });
    },

    querenqianshou(e) {
      var that = this;
      uni.showModal({
        title:that.$t('page_other.提示'),
        content:that.$t('page_other.确认签收该包裹'),

        success(res) {
          if (res.confirm) {
            var data = {
              token: uni.getStorageSync("token"),
              id: e.currentTarget.dataset.id,
            };
            request
              .post(
                `index.php?s=/api/package/signedin&wxapp_id=` +
                  uni.getStorageSync("web_id"),
                data
              )
              .then((res) => {
                if (res.data.code == 1) {
                  uni.showToast({
                    title: res.data.data,
                  });
                  setTimeout(() => {
                    uni.navigateBack({
                      delta: 0,
                    });
                  }, 1000);
                } else {
                  uni.showToast({
                    title: res.data.msg,
                    icon: "none",
                  });
                }
              });
          } else {
            if (res.cancel) {
              console.log("用户点击取消");
            }
          }
        },
      });
    },

    genghuandizhi() {
      //跳转选择地址
      uni.navigateTo({
        url: "/pages/pintuans/dizhi/dizhi?type=xuanze",
      });
    },

    choosecoupon() {
      //跳转选择地址
      uni.navigateTo({
        url:
          "/pages/mys/my_usercoupon/my_yhq?type=xuanze&free=" + this.free_total,
      });
    },

    wuliu(e) {
      uni.navigateTo({
        url: "/pages/chaxun/chaxun?id=" + e.currentTarget.dataset.id,
      });
    },

    viewCopyTextClick: function () {
      var that = this;
      uni.setClipboardData({
        data: that.xiangqingdetail ? that.xiangqingdetail.express_num : "",
        success: function (res) {
          uni.getClipboardData({
            success: function (res) {
              uni.showToast({
                title:that.$t('page_other.复制成功'),
              });
            },
          });
        },
      });
    },

    qupinjia() {
      uni.navigateTo({
        url: "/pages/indexs/my_dingdan_qpj/my_dingdan_qpj",
      });
    },

    jumpzuo() {
      console.log(this.rtype, 8888888888);
      if (this.rtype == 10) {
        uni.navigateTo({
          url: "/pages/index/index",
        });
      }
      uni.navigateBack();
    },

    xiangqing() {
      var that = this;
      var data = {
        token: uni.getStorageSync("token"),
        id: that.ids,
        coupon_id: that.coupon_id,
        method: "edit",
      };
      request
        .post(
          `index.php?s=/api/package/packdetails&wxapp_id=` +
            uni.getStorageSync("web_id"),
          data
        )
        .then((res) => {
          if (res.data.code == 1) {
            that.xiangqingdetail= res.data.data
            that.free_total= res.data.data.free_total
            console.log(res, "re?");
          }
        });
    },

    genghuandizhi2() {
      var that = this;
      var data = {
        token: uni.getStorageSync("token"),
        address_id: that.address_id,
        id: that.xiangqingdetail.id,
      };
      request
        .post(
          `index.php?s=/api/package/addressUpdate&wxapp_id=` +
            uni.getStorageSync("web_id"),
          data
        )
        .then((res) => {
          if (res.data.code == 1) {
            uni.showToast({
              title: res.data.data,
            });
            that.xiangqing();
          } else {
            uni.showToast({
              title: res.data.msg,
              icon: "none",
            });
          }
        });
    },
  },
};
</script>
<style>
@import "./my_dingdan_details.css";
</style>
